package cn.iocoder.yudao.module.brokerage.record.pojo.bo;

import cn.iocoder.yudao.framework.common.util.number.MoneyUtils;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

@Schema(description = "推广佣金数据汇总 Response VO")
@Data
public class BrokerageRecordMonthSummaryBO implements Serializable {

    @Schema(description = "年份")
    private Integer year;

    @Schema(description = "月份")
    private Integer month;

    @Schema(description = "累计已结算分佣，单位为分")
    private Integer totalMoney;
    @Schema(description = "累计已结算分佣，单位为元")
    private String totalMoneyYuan;

    @SuppressWarnings("unused")
    public String getTotalMoneyYuan() {
        if (totalMoneyYuan == null) {
            totalMoneyYuan = MoneyUtils.fenToYuanStr(getTotalMoney());
        }
        return totalMoneyYuan;
    }

}